package com.hangzhou.xyj.model.type;

/**
 * 消息处理结果类型
 * neo.duan
 */
public enum EMsgHandleResultType {
    UNKNOWN(0),//未知
    AGREEED(1), //已同意加群
    REFUSEED(2);//已拒绝加群


    private int value;

    EMsgHandleResultType(int value) {
        this.value = value;
    }

    public static EMsgHandleResultType value(int value) {
        switch (value) {
            case 1:
                return AGREEED;
            case 2:
                return REFUSEED;
            default:
                return UNKNOWN;
        }
    }

    public int getValue() {
        return this.value;
    }

}
